.class Limoblife/applist/AppListActivity$7;
.super Ljava/lang/Thread;
.source "AppListActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Limoblife/applist/AppListActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Limoblife/applist/AppListActivity;

.field private final synthetic val$handler:Landroid/os/Handler;


# direct methods
.method constructor <init>(Limoblife/applist/AppListActivity;Landroid/os/Handler;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    iput-object p2, p0, Limoblife/applist/AppListActivity$7;->val$handler:Landroid/os/Handler;

    .line 410
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 412
    iget-object v3, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    #calls: Limoblife/applist/AppListActivity;->getListItem()Ljava/util/List;
    invoke-static {v3}, Limoblife/applist/AppListActivity;->access$3(Limoblife/applist/AppListActivity;)Ljava/util/List;

    move-result-object v2

    .line 413
    .local v2, list:Ljava/util/List;,"Ljava/util/List<Limoblife/applist/AppListActivity$Item;>;"
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    if-nez v3, :cond_1

    .line 414
    iget-object v3, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    #calls: Limoblife/applist/AppListActivity;->autoUpdataAppList(Landroid/content/Context;Z)I
    invoke-static {v3, v7}, Limoblife/applist/AppListActivity;->access$0(Landroid/content/Context;Z)I

    move-result v3

    const/4 v4, 0x4

    if-eq v3, v4, :cond_0

    .line 415
    const-wide/16 v3, 0x3e8

    :try_start_0
    invoke-static {v3, v4}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 416
    :goto_0
    iget-object v3, p0, Limoblife/applist/AppListActivity$7;->val$handler:Landroid/os/Handler;

    invoke-virtual {v3, v8}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 435
    :goto_1
    return-void

    .line 419
    :cond_0
    iget-object v3, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    #calls: Limoblife/applist/AppListActivity;->getListItem()Ljava/util/List;
    invoke-static {v3}, Limoblife/applist/AppListActivity;->access$3(Limoblife/applist/AppListActivity;)Ljava/util/List;

    move-result-object v2

    .line 421
    :cond_1
    const/4 v0, 0x0

    .local v0, i:I
    :goto_2
    iget-object v3, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    iget-object v3, v3, Limoblife/applist/AppListActivity;->listViewItem:[Limoblife/applist/AppListActivity$ListViewItem;

    array-length v3, v3

    if-lt v0, v3, :cond_2

    .line 424
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_3
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_3

    .line 433
    iget-object v3, p0, Limoblife/applist/AppListActivity$7;->val$handler:Landroid/os/Handler;

    invoke-virtual {v3, v7}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 434
    invoke-static {}, Limoblife/applist/DatabaseItem;->close()V

    goto :goto_1

    .line 422
    :cond_2
    iget-object v3, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    iget-object v3, v3, Limoblife/applist/AppListActivity;->listViewItem:[Limoblife/applist/AppListActivity$ListViewItem;

    new-instance v4, Limoblife/applist/AppListActivity$ListViewItem;

    iget-object v5, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    iget-object v6, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    invoke-direct {v4, v5, v6}, Limoblife/applist/AppListActivity$ListViewItem;-><init>(Limoblife/applist/AppListActivity;Landroid/content/Context;)V

    aput-object v4, v3, v0

    .line 421
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    .line 424
    :cond_3
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Limoblife/applist/AppListActivity$Item;

    .line 425
    .local v1, item:Limoblife/applist/AppListActivity$Item;
    iget-object v4, v1, Limoblife/applist/AppListActivity$Item;->type:Ljava/lang/String;

    const-string v5, "UTILITY"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 426
    iget-object v4, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    iget-object v4, v4, Limoblife/applist/AppListActivity;->listViewItem:[Limoblife/applist/AppListActivity$ListViewItem;

    aget-object v4, v4, v7

    #getter for: Limoblife/applist/AppListActivity$ListViewItem;->scr:Ljava/util/List;
    invoke-static {v4}, Limoblife/applist/AppListActivity$ListViewItem;->access$2(Limoblife/applist/AppListActivity$ListViewItem;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 427
    :cond_4
    iget-object v4, v1, Limoblife/applist/AppListActivity$Item;->type:Ljava/lang/String;

    const-string v5, "HEALTH"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 428
    iget-object v4, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    iget-object v4, v4, Limoblife/applist/AppListActivity;->listViewItem:[Limoblife/applist/AppListActivity$ListViewItem;

    aget-object v4, v4, v8

    #getter for: Limoblife/applist/AppListActivity$ListViewItem;->scr:Ljava/util/List;
    invoke-static {v4}, Limoblife/applist/AppListActivity$ListViewItem;->access$2(Limoblife/applist/AppListActivity$ListViewItem;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 430
    :cond_5
    iget-object v4, p0, Limoblife/applist/AppListActivity$7;->this$0:Limoblife/applist/AppListActivity;

    iget-object v4, v4, Limoblife/applist/AppListActivity;->listViewItem:[Limoblife/applist/AppListActivity$ListViewItem;

    const/4 v5, 0x2

    aget-object v4, v4, v5

    #getter for: Limoblife/applist/AppListActivity$ListViewItem;->scr:Ljava/util/List;
    invoke-static {v4}, Limoblife/applist/AppListActivity$ListViewItem;->access$2(Limoblife/applist/AppListActivity$ListViewItem;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 415
    .end local v0           #i:I
    .end local v1           #item:Limoblife/applist/AppListActivity$Item;
    :catch_0
    move-exception v3

    goto :goto_0
.end method
